package com.zyh.service;

import com.zyh.entity.Book;
import com.zyh.entity.BorrowBook;
import com.zyh.entity.BorrowBookVo;
import com.zyh.entity.UserVO;

import java.util.HashMap;
import java.util.List;

public interface BookService {
    //得到所有的书
    List<Book> getAllBook(Book book);

    //统计所有书数量
    public Integer getBookCount(Book book);

    public BorrowBookVo selectBook(Integer id);

    public Integer updateBookWithId(Book book);

    public Integer DeleteBookByids(Integer[] id);

    public Integer addBook(Book book);

    public Integer BorrowBookWithId(Book book);

    List<BorrowBookVo> getBorrowBook(BorrowBookVo borrowbookVo);

    public Integer getBorrowCount(BorrowBookVo borrowbookVo);

    public Integer BorrowBookWithIds(Integer[] id);

    public Integer SendBookWithId(BorrowBookVo borrowBookVo);


    public List<BorrowBookVo> selectbyuserid(BorrowBookVo borrowBookVo);


    public Integer addBorrow(List<BorrowBookVo> borrowBookVos);

    public Integer sendBorrow(List<BorrowBookVo> borrowBookVos);

    List<BorrowBookVo> getBorrowHistory(BorrowBookVo borrowBookVo);

    public Integer getBorrowBookCount(BorrowBookVo borrowBookVo);


}
